package com.ljm.boot.helloword.simpleStudy.thread;

public class TestRunable {

    public static void main(String[] args) {
        CreatetRunable createtRunable = new CreatetRunable();
        Thread thread = new Thread(createtRunable);
        thread.start();

    }

}

class CreatetRunable implements Runnable {
    @Override
    public void run() {
        for (int i = 1; i <= 100; i++) {
            System.out.println("MyJob:" + i);
        }
    }
}